<template>
<!-- 转租 -->
  <div class="subject">
    <!-- 头部预留 -->
    <header>
      <div class="return" @click="returns">
        <i class="iconfont icon-zuojiantou"></i>
      </div>
      <div class="title">我要转租</div>
    </header>
    <div class="zhufang">
      <p>当前住房</p>
    </div>
    <main>
      <div class="contents" v-for="(item, index) in dataList.list"
          :key="index">
        <div>
         <img :src="item.imgSrc" alt="" />
        </div>
        <div
          class="contents1"
         
        >
          <ul>
            <li>{{ item.region }}</li>
            <li>{{ item.type }}</li>
            <li>{{ item.advantage }}</li>
          </ul>
          <div class="contents1_1">
            <span>{{ item.money }}</span>
            <div>{{ item.rent }}</div>
          </div>
        </div>
      </div>

      <div class="contents2">
        <van-button type="primary" color="#ff5555">我要转租</van-button>
      </div>
    </main>

    <footer></footer>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
      dataList: {
        list: [
          {
            region: "北京香格里拉",
            type: "1室1厅",
            advantage: "距离地铁站1米",
            rent: "整租",
            money: "2000元/月",
          },
        ],
      },
    };
  },
     methods:{
  //跳转
     returns(){
         this.$router.push('/my')
     }
  }
};
</script>

<style lang="less" scoped>
.subject {
  padding: 0;
  background-color: #ededed;
  header {
    width: 100%;
    height: 88px;
    background-color: #ff5654;
    display: flex;
    .return {
      margin-left: 20px;
      i {
        color: #fff;
        font-size: 34px;
        line-height: 88px;
      }
    }
    .title {
      padding: 0 256px;
      color: #fff;
      font-size: 36px;
      line-height: 88px;
    }
  }
  .zhufang {
    font-size: 30px;
    background-color: #fff;
    height: 80px;
    line-height: 80px;
    text-indent: 1em;
    p {
      margin: 0;
    }
  }
  main {
    background: #ededed;
    height: 1334px;
    .contents {
      border-radius: 7px;
      background-color: #fff;
      display: flex;

      padding: 25px 15px 15px 20px;
      margin: 0 20px;
      margin-top: 10px;

      img {
        width: 290px;
        height: 198px;
      }
      .contents1 {
        li:nth-child(1) {
          font-size: 20px;
        }
        li:nth-child(2) {
          font-size: 18px;
          margin-top: 10px;
        }
        li:nth-child(3) {
          font-size: 17px;
          margin-top: 8px;
          opacity: 0.8;
        }

        margin-left: 20px;
        .contents1_1 {
          margin: 12px 0;

          font-size: 13px;
          div {
            margin: 8px 0 0 0;
            font-size: 10px;
            color: #ff9279;
            text-align: center;
            width: 70px;
            height: 30px;
            border: 1px solid #ff9279;
            line-height: 30px;
            border-radius: 5px;
          }
          span {
            color: #ff5555;

            font-size: 25px;
          }
        }
      }
    }
    .contents2 {
      width: 100%;
      text-align: center;

      .van-button {
        width: 608px;
     
        margin-top: 80px;

        border-radius: 10px;
        height: 65px;
      }
    }
  }
}
</style>
